//
//  User.m
//  FMDB_Demo_Login
//
//  Created by libertyair on 15/5/28.
//  Copyright (c) 2015年 libertyair. All rights reserved.
//

#import "User.h"

@implementation User

- (instancetype)initWithUserName:(NSString *)userName andPassword:(NSString *)password
{
    if (self = [super init])
    {
        self.userName = userName;
        self.password = password;
    }
    return self;
}
+ (instancetype)UserWithUserName:(NSString *)userName andPassword:(NSString *)password
{
    return [[User alloc]initWithUserName:userName andPassword:password];
}

@end
